package com.tl.gateway;

import jade.Boot;

import java.util.Arrays;

/**
 * 启动容器
 *
 * @author: TangLiang
 * @date: 2020/4/2 14:30
 * @since 1.0
 */
public class RunAgents {

    public static void main(String[] args) {
        //"-container", "-container-name","容器名","Agent名字：Agent路径"
        String[][] agents = {{"-gui", "-name", "AgentGateWay"},
                {"-container", "-container-name", "receiver", "receiver:com.tl.gateway.ReceiveAgent"}
        };
        //启动容器
        Arrays.stream(agents).forEach(Boot::main);
    }
}
